<%--
  Created by IntelliJ IDEA.
  User: 门铎
  Date: 2016/6/24
  Time: 9:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Title</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="${pageContext.request.contextPath}/css/font-awesome.css" rel="stylesheet" />
    <!--CUSTOM BASIC STYLES-->
    <link href="${pageContext.request.contextPath}/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="${pageContext.request.contextPath}/css/custom.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
    <jsp:include page="../manage/nav-top.jsp"/>
    <jsp:include page="../manage/nav.jsp"/>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <ol class="breadcrumb">
                        <li><a href="#">首页</a></li>
                        <li><a href="active">新建用户</a></li>
                    </ol>
                    <hr />
                    <ul class="nav nav-pills">
                        <li>
                            <a href="${pageContext.request.contextPath}/cimv/user/list">
                                <i class="glyphicon glyphicon-user"></i>用户列表
                            </a>
                        </li>
                        <li class="active">
                            <a><i class="glyphicon glyphicon-plus"></i>新建用户</a>
                        </li>
                    </ul>
                    <hr />
                    <div class="alert alert-danger">
                        ${msg}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <form role="form" class="form-horizontal" action="/cimv/user/create" method="post">

                        <div class="form-group">
                            <label for="username" class="col-sm-1 control-label">账户:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control"  value="${username}" id="username" name="username" placeholder="请输入账户...">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-1 control-label">密码:</label>
                            <div class="col-sm-10">
                                <input type="text" class="col-md-7 form-control" value="${password}" id="password" name="password" placeholder="请输入密码...">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">权限: </label>
                            <label class="radio-inline">
                                <input type="radio" name="role" id="role1" <c:if test="${role == '1'}">checked="cheeked"</c:if>  value="1" /> 管理员
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="role" id="role2" <c:if test="${role == '2'}">checked="cheeked"</c:if> value="2"/> 用 户
                            </label>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-10">
                                <button  class="btn btn-primary" >创建</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- /. PAGE WRAPPER  -->
</div>
<!-- /. WRAPPER  -->

<jsp:include page="../manage/footer.jsp" />
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- JQUERY SCRIPTS -->
<script src="${pageContext.request.contextPath}/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="${pageContext.request.contextPath}/js/jquery.metisMenu.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="${pageContext.request.contextPath}/js/custom.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.validate.js"></script>
<script src="${pageContext.request.contextPath}/js/form.js"></script>
<script>
    $(function(){
        MyValidator.init();
    });
</script>

</body>

</html>
